let axios = require("axios");
let fs = require("fs");

axios({
  url: "https://login.dangdang.com/signin.aspx?returnurl=http%3A//www.dangdang.com/",
  headers: {}
})
  .then(function (response) {
    fs.writeFile("./dangdanglogin.html", response.data, function (err) {
      if (err) {
        console.error(err);
      } else {
        console.log("当当下载成功");
      }
    });
  });